﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AB_SD_Entities
{
    public class County
    {
        private int id;
        private string name;
        private int countryId;

        /// <summary>
        /// Get or set county id
        /// </summary>
        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        
        /// <summary>
        /// Get or set country id
        /// </summary>
        public int CountryId
        {
            get { return countryId; }
            set { countryId = value; }
        }
        
        /// <summary>
        /// Get or set name
        /// </summary>
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        
        /// <summary>
        /// Construct new County
        /// </summary>
        public County()
        {
            id = 0;
            name = "";
            countryId = 0;            
        }

        /// <summary>
        /// Construct new county
        /// </summary>
        /// <param name="countyID"></param>
        /// <param name="countyName"></param>
        /// <param name="countryid"></param>
        public County(int countyID, string countyName, int countryid)
        {
            id = countyID;
            name = countyName;
            countryId = countryid;
        }
    }
}
